#统计字符串中大写字母、小写字母、数字、其他字符的个数

str1 = input("请输入一个字符串:")
upper_count = 0
lower_count = 0
digit_count = 0
other_count = 0

for s in str1:
    if s.isupper():
        upper_count += 1
    elif s.islower():
        lower_count += 1
    elif s.isdigit():
        digit_count += 1
    else:
        other_count += 1
print("字符串中大写字母数量:", upper_count)
print("字符串中小写字母数量:", lower_count)
print("字符串中数字数量:", digit_count)
print("字符串中其他字符数量:", other_count)
